#include "sharedmemorycontrol.h"


SharedMemoryControl::SharedMemoryControl():Process()
{
    name = "SharedMemoryControl";
}

SharedMemoryControl::~SharedMemoryControl()
{
}

void SharedMemoryControl::Run() {
    LogManager::getSingleton().Message("SharedMemoryControl", "step "+LogManager::getSingleton().toStr(currentStep));
    switch(currentStep){
    case 0:{

    }
    break;
    case 1:{

    }
    break;
    case 2:{

    }
    break;
    case 3:{

    }
    break;
    case 4:{
         //lineOfInput = reinterpret_cast<UserInput*>(ResourceAllocator::getSingleton().getResource("UserInput"));
         //lineOfInput->input="ka as gui gavo";
         //ResourceAllocator::getSingleton().addResource(new UserInput);
         currentStep=-1;
    }
    break;
    default:
      qDebug() << "gg SharedMemoryControl";
    }
    currentStep++;
}
